<% if @customer.id.nil? %>
  $("#new_transaction").append("<%=j render 'customers/form', { customer: @customer } %>");
<% end %>